Skip to main content

All Questions

1vote
1answer
415views

wp_is_mobile dequeue not working

According to this topic: Dequeue Scripts and Style for Mobile not working? I used the last answer but for Slider revolution plugin and it does not work: This is my function in functions.php: ...
Rasam Server's user avatar
1vote
1answer
703views

Adding tawk.to code just before body tag on functions.php file

I would like to add tawk.to widget script just before the body tag. I would like to add the code to the functions.php file of my child theme. How can I do this? A code sample will assist a long way. ...
3vanse's user avatar
1vote
1answer
737views

Why won't my scripts load?

I am having trouble loading scripts in functions.php I've done this before so I'm sure I'm overlooking something but as far as I can tell it is correct and I have tried copying and pasting from other ...
user5854648's user avatar
1vote
2answers
6kviews

Enqueuing External Javascript functions.php

For some reason I cant seem to enqueue external JS files. I can enqueue external css files but not the JS files. I have a custom theme using the bootstrap css frame work. My functions.php is as ...
Zayd Bhyat's user avatar
0votes
1answer
47views

Theme JS is available but theme CSS isn't

In functions.php I used the following code to enqueue assets, but for some reason all CSS is ignored (JS isn't ingonred): function my_theme_enqueue_assets() { wp_enqueue_style( 'parent-style', ...
Arcticooling's user avatar
5votes
1answer
12kviews

How to enqueue JavaScript for specific WordPress pages only?

I'm new to WordPress, tried first searching for this and found a few related answers, none of which i fully understood. Will appreciate a few lines of concrete instructions. I have a WordPress page ...
Yoav Ossia's user avatar
0votes
1answer
918views

How to load jQuery in TOP of wp_footer?

I have added this code to load Google hosted jQuery function replace_jquery() { if (!is_admin()) { wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery....
user avatar
1vote
1answer
890views

how to en-queue jQuery to load before the </body> tag

I've enqueued all my scripts on function.php to load before the tag by passing 'true' to the fifth argument. It does works for all of them BUT jquery, any idea what I'm doing wrong? ...
Ana's user avatar
  • 11
0votes
2answers
1kviews

custom post with loading script per single post

I read many Q&As here on SO...(and elsewhere but they don't count...lol) I think I follow the rules of WP.org but still it does not load the scripts. Scenario: Custom template for post in Php: &...
Jadeye's user avatar
0votes
2answers
963views

Include Jquery libraries in wordpress theme?

I have a file in my theme's JS folder named cycle2.js. How do I include the Jquery from 'wordpress→includes' into my theme? How do I load this custom JavaScript file 'cycle2.js' into my theme? I have:...
coupon walrus's user avatar
0votes
0answers
8kviews

java script error Uncaught SyntaxError: Unexpected token ILLEGAL

i had a website that was working fine on localhost without any errors but after i uploaded it on the domain the slider stoped working and i got this errors Uncaught SyntaxError: Unexpected token ...
sarah's user avatar
2votes
2answers
2kviews

Enqueuing Script in functions.php vs on the page

Does it matter if I enqueue a script on just the page I need it to be used? As opposed to functions.php? Or, what is the best practice? In this example I need a rotator just on the front page of my ...
jw60660's user avatar
  • 1,546
0votes
1answer
2kviews

wp_enqueue_script() not working

I'm trying to add this social-network button: <a href="http://svejo.net/submit/?url=[your url]" data-url="[your url]" data-type="compact" id="svejo-button">Add in Svejo</a> ...
kidwon's user avatar
0votes
1answer
571views

Run a jquery script on on a certain template page

All I want to do is basically this: wp_register_script( 'jquery_zebra', get_bloginfo('stylesheet_directory') . '/library/scripts/jquery.zebra.js', array('jquery')); wp_register_style( 'css_zebra',...
Rob Bennet's user avatar

close